package io;

import java.io.*;

public class StreamWriteFileDemo {
    public static void main(String[] args) {
        try(OutputStream outputStream=new FileOutputStream("./test.txt")) {
            byte[] buffer=new byte[]{(byte)0xe4,(byte)0xbd,(byte)0xa0,(byte)0xe5,(byte)0xa5,(byte)0xbd};
            outputStream.write(buffer,0,2);
//            outputStream.write(0xe4);
//            outputStream.write(0xbd);
//            outputStream.write(0xa0);
//            outputStream.write(0xe5);
//            outputStream.write(0xa5);
//            outputStream.write(0xbd);
        }catch(IOException e) {
            e.printStackTrace();
        }
    }
}
